import request from '@/utils/request'

// 查询工程复盘目录列表
export function getTreeList(projectId) {
  return request({
    url: '/project/recovery/getTree/' + projectId,
    method: 'get'
  })
}

// 查询工程复盘目录详细
export function getRecovery(recoveryId) {
  return request({
    url: '/project/recovery/' + recoveryId,
    method: 'get'
  })
}

// 新增工程复盘目录
export function addRecovery(data) {
  return request({
    url: '/project/recovery',
    method: 'post',
    data: data
  })
}

// 修改工程复盘目录
export function updateRecovery(data) {
  return request({
    url: '/project/recovery',
    method: 'put',
    data: data
  })
}

// 删除工程复盘目录
export function delRecovery(recoveryId) {
  return request({
    url: '/project/recovery/' + recoveryId,
    method: 'delete'
  })
}
